
package com.kanjian.music.api;

import java.io.File;
import java.io.Serializable;
import java.util.HashMap;

import com.android.volley.Request.Method;

public class RequestEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    public String mUrl;

    public int mMethod;

    public HashMap<String, String> mParams;
    
    public HashMap<String, File> mFileParams;

    public RequestEntity(String url) {
        this.mUrl = url;
        this.mMethod = Method.GET;
    }

    public RequestEntity(String url, HashMap<String, String> params) {
        this.mUrl = url;
        this.mParams = params;
        this.mMethod = Method.POST;
    }
    
    public RequestEntity(String url, HashMap<String, String> params, HashMap<String, File> fileParams) {
        this.mUrl = url;
        this.mParams = params;
        this.mMethod = Method.POST;
    }

}
